Skip to content

fix(anvil): Port Reth's gas estimation and fix wrong executor error#4885

Merged
mattsse merged 8 commits intomasterfrom
evalir/gas_errors
May 5, 2023
Merged

fix(anvil): Port Reth's gas estimation and fix wrong executor error#4885
mattsse merged 8 commits intomasterfrom
evalir/gas_errors

Conversation

@Evalir
Copy link
Member

@Evalir Evalir commented May 5, 2023

We missed a few cases with #4861. To avoid so, we're just porting what was left of Reth's gas estimation method, which handles a few more special cases. As we're using revm 3 things are not exactly 1:1, but they are pretty close.

We also fix a somewhat unrelated executor bug that would throw an incorrect error.

Closes #4877 and #4882.

@Evalir Evalir requested a review from mattsse May 5, 2023 20:55
@Evalir Evalir marked this pull request as ready for review May 5, 2023 20:55
@mattsse mattsse linked an issue May 5, 2023 that may be closed by this pull request
2 tasks
@mattsse mattsse merged commit 3092735 into master May 5, 2023
@mattsse mattsse deleted the evalir/gas_errors branch May 5, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting gas required exceeds allowance while using forge create OutOfGasError and other unknown tx failures

2 participants